package com.code.mapper;

import com.code.entity.Templates;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 合同模版表 Mapper 接口
 * </p>
 *
 * @author guanfenga@yonyou.com
 * @since 2022-09-15
 */
public interface TemplatesMapper extends BaseMapper<Templates> {

    @Select("select * from tz_templates order by t_time desc limit #{been},#{after}")
    List<Templates> findTemplatesPage(@Param("been") Integer pageBefore, @Param("after") Integer limit, Templates templates);
}
